package src._1;

import org.junit.jupiter.api.Test;

/**
 * Created by didi on 26/02/2018.
 */
public class SB {

    @Test
    void test(){
        StringBuffer stringBuffer = new StringBuffer("A");
        StringBuffer stringBuffer2 = new StringBuffer("B");
        oper(stringBuffer,stringBuffer2);
        System.out.println(stringBuffer);
        System.out.println(stringBuffer2);
    }

    void oper(StringBuffer s1,StringBuffer s2){
        s1.append(s2);
        s2 = s1;
    }
}
